﻿
@{
    ViewBag.Title = "选择商品类别";
}
using
@model  List<RXY_Mall.Application.Shop.Dto.ShopCategoryDto>
@section CSS{
}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <section class="content-header">
        <h1>
            添加
            <small>商品</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">商家管理</a></li>
            <li><a href="/shop/company">店铺列表</a></li>
            <li class="active">添加商品</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-body">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>选择商品类目</h5>
                            </div>
                            <div class="ibox-content" style="margin-top:10px;">
                                <div class="table-responsive">
                                    <table class="table table-bordered table-striped" id="mytable">
                                        <thead>
                                            <tr>
                                                <th>商品类型</th>
                                                <th>一级类目</th>
                                                <th>二级类目</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @foreach (var item in Model)
                                            {
                                            <tr>
                                                <td><input class='form-control ' disabled='disabled' type='text' value='@(item.TypeId==2?"合力免单商品":(item.TypeId==3?"趣卡专享商品":(item.TypeId==4?"1元购商品":"普通商品")))' /></td>
                                                <td><input type='text' class='form-control ' disabled='disabled' value='@item.CategoryOneName' />  </td>
                                                <td><input type='text' class='form-control' disabled='disabled' value='@item.CategoryTwoName' />  </td>
                                                <td><a title='上传商品'  href='/shop/addgoods/@ViewBag.id/@(item.CategoryTwoId>0?item.CategoryTwoId:item.CategoryOneId)?type=@item.TypeId' class='btn btn-warning'>上传商品</a></td> 
                                            </tr>
                                            }
                                        </tbody>

                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</div>

@section JS{

}


